<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <script>
        const ajax1 = () =>{}
        const ajax2 = () =>{}
        const ajax3 = () =>{}

        ajax1()
        ajax2()
        ajax3()

        setTimeout(()=>{
            console.log('first');
            setTimeout(()=>{
                console.log('second');
                setTimeout(()=>{
                    console.log('three');
                    // ...
                })
            })
        })
    </script>
</body>
</html>